﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;
using System.ComponentModel.DataAnnotations;

namespace Windvoice.Albums
{
    [ActiveRecord("Photo")]
    public partial class Photo : ActiveRecordBase<Photo>
    {
        [PrimaryKey(PrimaryKeyType.Identity, "ID")]
        public int ID
        {
            get;
            set;
        }

        [Property]
        public int AlbumID
        {
            get;
            set;
        }

        [Property]
        public string Guid
        {
            get;
            set;
        }

        [Display(Name="描述")]
        [Property]
        public string Description
        {
            get;
            set;
        }

        [Property]
        public string Path
        {
            get;
            set;
        }

        [Property]
        public string SmallPath
        {
            get;
            set;
        }

        [Property]
        public int Priority
        {
            get;
            set;
        }

        [Property]
        public int Flag
        {
            get;
            set;
        }

        [Property]
        public DateTime CreateTime
        {
            get;
            set;
        }
    }
}
